export const  goBack = (router) => {
    document.onkeydown = function(oEvent) {
        var oEvent = oEvent || window.oEvent; 
        //获取键盘的keyCode值
        var nKeyCode = oEvent.keyCode || oEvent.which || oEvent.charCode;
        //获取ctrl 键对应的事件属性
        var bCtrlKeyCode = oEvent.ctrlKey || oEvent.metaKey;
         if( nKeyCode == 90 && bCtrlKeyCode  ) {
             router.go(-1)
         }
    }
}